<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/stomp.min.js"></script>

    <script>

        var client = Stomp.client('ws://localhost:15674/ws');

        var on_connect = function(x) {
            id = client.subscribe("/exchange/paynotify", function(d) {
                alert(d.body);
            });
        };
        var on_error = function() {
            console.log('error');
        };
        client.connect('webguest', '123456', on_connect, on_error, '/');

    </script>

</head>
<body>

</body>
</html>